﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DreamLand.Services.Models;

namespace DreamLand.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IDreamLandService
    {

        [OperationContract(Name= "GetRootCategories")]
        List<Category> GetCategories();

        [OperationContract(Name="GetCategoriesByParentID")]
        List<Category> GetCategories(int parentID);

        [OperationContract]
        List<Document> GetDocuments(int catID);
    }
}
